'use strict';
Object.defineProperty(exports, "__esModule", { value: true });

const vscode = require("vscode");
const { editorUrlList, browserUrlList } = require("./config.js");
const { OpenInEditor } = require('./openInEditor.js');
const { OpenInBrowser } = require('./openInBrowser.js');

function activate(context) {
  editorUrlList.forEach(item => {
    context.subscriptions.push(vscode.commands.registerCommand(item.command, () => {
      OpenInEditor.createOrShow(item);
    }));
  })

  browserUrlList.forEach(item => {
    context.subscriptions.push(vscode.commands.registerCommand(item.command, (path) => {
      OpenInBrowser(path, item)
    }));
  })
}

exports.activate = activate;